package com.atguigu.service;

import com.atguigu.pojo.Page;
import com.atguigu.pojo.ServerType;

import java.util.List;

//在service中建立serverTypeservice,定义serverTypeserviceImpl需要实现的方法
public interface ServerTypeService {
    public void addServerType(ServerType serverType);
    public void updateServerType(ServerType serverType);
    public void deleteServerTypeById(String id);
    public String queryServerTypeIdByName(String name);
    public ServerType queryServerTypeById(String id);
    public ServerType queryServerTypeByName(String name);
    public List<ServerType> queryServerTypes();
    public Page page(Integer pageNo,Integer pageSize);
}
